<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<title>车辆管理</title>
<meta name="nav" content="1" />
<meta name="acc" content="0-0" />
<script>
		$(document).ready(function() {
		 $("input[id='buyTimeBefore']").addClass("Wate").bind("click", function(){
    	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01',maxDate:'#F{$dp.$D(\'buyTimeEnd\')||\'%y-%M-%d\'}',dateFmt:'yyyy-MM-dd'});});
		 $("input[id='buyTimeEnd']").addClass("Wate").bind("click", function(){
    	 WdatePicker({skin:'whyGreen',minDate:'#F{$dp.$D(\'buyTimeBefore\')}',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		});
</script>

</head>
<body>
<div id="message"><s:actionmessage theme="custom" cssClass="success" /></div>
<form id="mainForm" action="${ctx }/asset/car/information.action" method="get" class="yform">
<div id="filter">
<ul>
<li>车牌号 ：<input type="text" name="filter_LIKES_licenseplateNumber" value="${param['filter_LIKES_licenseplateNumber']}" /></li>
<li>车辆名称 ：<input type="text" name="filter_LIKES_brand" value="${param['filter_LIKES_brand']}" /></li>
<li>上牌日期：<input type="text" id="buyTimeBefore" name="filter_GED_regDate" value="${param['filter_GED_regDate']}"  /></li>
<li>到:<input id="buyTimeEnd" type="text" name="filter_LED_regDate" value="${param['filter_LED_regDate']}"/></li>
<li></li>
</ul>
<div class="type-button"><input onclick="search()" type="button" value="查询" align="right" class='search'/></div>
</div>
<div id="content" >
<table id="contentTable"  class="datalist">
	<tr>
		<th><a id="createDate" href="javascript:sort('sindex','asc')">编号</a></th>
		<th><a id="licenseplateNumber" href="javascript:sort('licenseplateNumber','asc')">车牌号</a></th>
		<th><a id="brand" href="javascript:sort('brand','asc')">车辆名称</a></th>
		<th><a id="model" href="javascript:sort('asstState','asc')">状态</a></th>
		<th><a id="model" href="javascript:sort('regDate','asc')">上牌日期</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="car" >
		<tr>
			<td>${car.sindex }</td>
			<td>${car.licenseplateNumber}</td>
			<td>${car.brand}</td>
			<td> <pt:code category="2019" code="${car.asstState }"></pt:code> </td>
			<td><fmt:formatDate value="${car.regDate}" pattern="yyyy-MM-dd"/> </td>
			<td><a
				href="${ctx}/asset/car/information!input.action?id=${car.id}">编辑</a>
			<a href="${ctx}/asset/car/information!delete.action?id=${car.id}" onclick="return confirmDelete();">删除</a></td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
<div class="type-button"><input  type="button" class="add" onclick="location.href='${ctx}/asset/car/information_input.action'"  value="新增" /> 
</div>
</form>
</body>
